import request from '@/router/axios'

export function fetchAttrValueList(query) {
  return request({
    url: '/admin/product/attrValue/page',
    method: 'get',
    params: query
  })
}

export function addAttrValueObj(obj) {
  return request({
    url: '/admin/product/attrValue/save',
    method: 'post',
    data: obj
  })
}

export function getAttrValueObj(id) {
  return request({
    url: '/admin/product/attrValue/' + id,
    method: 'get'
  })
}

export function delAttrValueObj(id) {
  return request({
    url: '/admin/product/attrValue/' + id,
    method: 'delete'
  })
}

export function delAttrValueObjs(ids) {
  return request({
    url: '/admin/product/attrValue/',
    method: 'delete',
    data: ids
  })
}

export function putAttrValueObj(obj) {
  return request({
    url: '/admin/product/attrValue/update',
    method: 'post',
    data: obj
  })
}
